{include file='pub/header'/}
<title>订单详情</title>
</head>
<body>
<div class="page-container">
    <form class="form form-horizontal" id="product_add">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>订单编号：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.order_no}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>下单时间：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.create_time}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>下单会员：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.user_name}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>会员电话：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.telephone}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>订单状态：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {:config('order_status')[$item.order_status]}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>支付方式：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {:config('pay_type')[$item.pay_type]}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>支付时间：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.pay_time}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>收货人姓名：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.receiver_name}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>收货人电话：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.receiver_telephone}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>收货地址：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.address}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>备注：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.remarks}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>商品详情：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <table class="table table-border table-bordered table-bg table-hover">
                    <thead>
                    <tr class="text-c">
                        <td>商品名称</td>
                        <td>规格</td>
                        <td>价格</td>
                        <td>数量</td>
                        <td>运费</td>
                        <td>优惠</td>
                        <td>商品总额</td>
                        <td>优惠后总额</td>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach $good_list as $good}
                    <tr class="text-c">
                        <td>{$good.name}</td>
                        <td>{$good.prop_name}</td>
                        <td>{$good.price}</td>
                        <td>{$good.num}</td>
                        <td>{$good.send_fee}</td>
                        <td>{$good.discount}</td>
                        <td>{:sprintf("%.2f", $good.price*$good.num)}</td>
                        <td>{:sprintf("%.2f", $good.price*$good.num+$good.send_fee-$good.discount)}</td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>商品总价：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.total_money}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>运费：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.send_fee}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>订单总价：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.order_money}
            </div>
        </div>
        <!--<div class="row cl">-->
            <!--<label class="form-label col-xs-4 col-sm-2"></label>-->
            <!--<div class="formControls col-xs-8 col-sm-9">-->
                <!--<button class="btn btn-primary radius" onclick="downloadOrder()">下载订单</button>-->
            <!--</div>-->
        <!--</div>-->
    </form>
</div>
{include file="pub/footer"/}
</body>
</html>